<?php


namespace app\common\model;


class UserEnterprise extends BaseModel
{
    protected $table = 'fa_user_enterprise';
    protected $pk = 'user_id';

    // 开启自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';
    // 定义时间戳字段名
    protected $createTime = 'create_time';
    protected $updateTime = 'update_time';

    public function getCertificatePhotosAttr($value)
    {
        return $value ? json_decode($value) : $value;
    }

    public function getPhotosAttr($value)
    {
        return $value ? json_decode($value) : $value;
    }
}